package test;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class SpringUtils {
	private static ApplicationContext   factory  = null;
	public static BeanFactory getFactory(){
		String [] str = new String[1];
		str[0] = "E:/codes/yzyz/WebContent/WEB-INF/applicationContext.xml";
		if(factory == null){
			factory = new FileSystemXmlApplicationContext(str);
		}
		return factory;
	}

}
